package JAVA异常处理;

/**
 * 项目名称：Demo01
 * 类 名 称：Demo01
 * 类 描 述：TODO
 * 创建时间：2021/03/15 18:43
 * 创 建 人：XiaoCoder
 */
public class ExceptionDemo01 {
    public static void main(String[] args) {
        int i = demo01();
        System.out.println(i);
    }

    public static int demo01() {
        try {
            int a = 1 / 0;
            return 10;
        } catch (Exception e) {
            return 3;
        } finally {
            return 2;
        }
    }
}
